package com.gmail.volodymyrdotsenko.roo.webeasy.scaffold;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Trigger annotation for web scaffold.
 * 
 * @since 1.1
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface RooWebeasyScaffold {

	/**
	 * Every controller is responsible for a single form backing object. The
	 * form backing object defined here class will be exposed in a RESTful way.
	 */
	Class<?> formBackingObject();

	/**
	 * All view-related artifacts for a specific controller are stored in a
	 * sub-directory under WEB-INF/views/<em>path</em>. The path parameter
	 * defines the name of this sub-directory or path. This path is also used to
	 * define the restful resource in the URL to which the controller is mapped.
	 * 
	 * @return The view path.
	 */
	String path();

}
// @com.gmail.volodymyrdotsenko.roo.webeasy.RooWebeasy
// @com.gmail.volodymyrdotsenko.roo.webeasy.scaffold.RooWebeasyScaffold(formBackingObject=pac1.domain.Project.class, path="/path1/")
